package com.xiangshizhineng.tianzhangzhi.app.model.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xiangshizhineng.tianzhangzhi.app.common.base.BaseEntity;
import com.xiangshizhineng.tianzhangzhi.app.utils.LongJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "通知表")
public class Notice extends BaseEntity implements Serializable {

  /**
   * 标题
   */
  @ApiModelProperty(value = "标题")
  private String title;
  /**
   * 开始时间
   */
  @ApiModelProperty(value = "开始时间")
  private Date startDate;
  /**
   * 结束时间
   */
  @ApiModelProperty(value = "结束时间")
  private Date endDate;
  /**
   * 创建时间
   */
  @ApiModelProperty(value = "创建时间")
  private Date createTime;
  /**
   * 创建人
   */
  @ApiModelProperty(value = "创建人")
  private String createPerson;
  /**
   * 图片路径
   */
  @ApiModelProperty(value = "图片路径")
  private String filePath;
  /**
   * 字典类型
   */
  @ApiModelProperty(value = "字典类型")
  @JsonSerialize(using = LongJsonSerializer.class)
  private Long dictoryId;
  /**
   * 1是轮播 0 否
   */
  @ApiModelProperty(value = "1是轮播 0 否")
  private String isBanner;
  /**
   * 内容
   */
  @ApiModelProperty(value = "内容")
  private String content;
  /**
   * 更新时间
   */
  @ApiModelProperty(value = "更新时间")
  private Date updateTime;
  @ApiModelProperty(value = "通知状态(24通知，25重要通知，26紧急通知)")
  private Long noticeStatus;

}
